﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
namespace SQT.tracnghiem.Ajax.ASP.Class
{
    public partial class add_class : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string name = Request.QueryString["name"];
            int teacher = int.Parse(Request.QueryString["teacher"]);
            DateTime open = DateTime.Parse(Request.QueryString["open"]);
            DateTime close = DateTime.Parse(Request.QueryString["close"]);
            string type = Request.QueryString["type"];
            string schedule = Request.QueryString["schedule"];
            string time_study = Request.QueryString["time_study"];
            string lesson = Request.QueryString["lesson"];
            string level = Request.QueryString["level"];
            new TblClassController().Insert(name, teacher, DateTime.Now, open, close, "", level, type, lesson, schedule, time_study, false);

        }
    }
}